function Tab(ele,style='click'){
    this.ele = document.querySelector(ele)
    this.ulList = this.ele.querySelectorAll('ul>li')
    this.olList = this.ele.querySelectorAll('ol>li')
    this.style = style
    this.change()
}
Tab.prototype.change = function(){
    for(let i = 0;i < this.ulList.length;i++){
        this.ulList[i].addEventListener(this.style,()=>{
            for(let j = 0;j<this.olList.length;j++){
                this.ulList[j].classList.remove('tab_active')
                this.olList[j].classList.remove('tab_active')
            }
            this.ulList[i].classList.add('tab_active')
            this.olList[i].classList.add('tab_active')
        })
    }
}